<template>
    <div class="child">
        我是子组件
        <Son></Son>
    </div>

</template>
<script >
    import {defineAsyncComponent} from "vue";
    const Son = defineAsyncComponent(()=>import('./son.vue')) //异步引入
export default {
    name: "",
    components: {Son},
};
</script>
<style scoped>
    .child{
        width: 100px;
        height: 100px;
        background-color: yellow;
    }
</style>
